package com.jrx.anytxn.transaction.service;

import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.customer.dto.coupon.CouponReq;
import com.jrx.anytxn.transaction.entity.AmLoanMainInfo;

import java.math.BigDecimal;
import java.util.List;

/**
 * ClassName IActivityLoanService
 *
 * @author lujianyou
 * @version 1.0
 * @description 根据借据派生的优惠券活动服务接口
 * @date 2021/7/9 9:19
 **/
public interface IActivityLoanService {
    /**
     * 统计每月消费金额，满足某域值发放特定优惠券
     * @param couponReq
     * @param expenditureThre
     */
    void sendCouponByLoanStatMonthly(CouponReq couponReq, BigDecimal expenditureThre) throws TxnException;

    /**
     *  半价过周末统计值
     * @param tenantId
     * @param sumAmount
     * @return
     */
    Integer halfActivityWeekend(String tenantId,BigDecimal sumAmount);

    /**
     *
     * @param startTime
     * @param endTime
     * @param loanType
     * @param sumAmount
     * @return
     */
    List<String> getAmLoanMainInfoByConsumeAmountWeekly(String startTime, String endTime, String loanType,BigDecimal sumAmount,String productId);
}
